﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ModifyLabEvaluation.aspx.cs"
    Inherits="LabMS.Web.LabEvaluation.ModifyLabEvaluation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>修改实验室自评信息</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript" language="javascript">
        function refreshParent() 
        {   
            window.opener.location.href = window.opener.location.href;
        }
         function wincolse()
        {
            this.window.close();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        修改实验室自评信息</label>
                </div>
            </div>
        </div>
        <div class="main">
            <asp:Label ID="ERRLbl" runat="server" Visible="false"></asp:Label>
            <p>
                <asp:Button ID="SaveBtn" runat="server" Text="保存" OnClick="Save_OnClick" />
                <input id="concelbtn" runat="server" class="button" value="返回" type="button" onclick='wincolse()' />
            </p>
            <p>
                评估对象：
                <asp:DropDownList ID="LabDDL" runat="server" DataTextField="Lab_Name" DataValueField="ID">
                </asp:DropDownList>
            </p>
            <p>
                评估标准：
                <asp:DropDownList ID="KindDDL" runat="server" DataTextField="Name" DataValueField="Code">
                </asp:DropDownList></p>
            <p>
                评估主题：
                <asp:DropDownList ID="TitleDDL" runat="server" DataTextField="Title_Name" DataValueField="ID">
                </asp:DropDownList></p>
            <p>
                评估日期：
                <asp:DropDownList ID="DateDDL" runat="server" DataTextField="EvTime" DataValueField="Date">
                </asp:DropDownList></p>
        </div>
        <div class="main">
            <asp:GridView ID="LabEvalGridView" Width="100%" PageSize="5" CssClass="infoTable"
                OnPageIndexChanging="LabEvalGV_OnPageChange" DataKeyNames="ID,EID,LabID" AllowPaging="true"
                AutoGenerateColumns="false" runat="server">
                <Columns>
                    <asp:BoundField DataField="StandarID" ShowHeader="false" Visible="false" />
                    <asp:BoundField DataField="St_Num" HeaderText="序号" HtmlEncode="false" />
                    <asp:BoundField DataField="St_Content" HeaderText="评估内容" />
                    <asp:BoundField DataField="St_Standard" HeaderText="评估标准" />
                    <asp:BoundField DataField="St_Method" HeaderText="评估方式" />
                    <asp:BoundField DataField="St_Explain" HeaderText="评估说明" />
                    <asp:TemplateField HeaderText="自评">
                        <ItemTemplate>
                            <asp:TextBox ID="SelfEvalTBX" TextMode="MultiLine" Rows="5" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Comment")%>'></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="评估">
                        <ItemTemplate>
                            <asp:RadioButton ID="IsRBL1" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "Result").ToString()=="1"?true:false %>'
                                Text="Y" GroupName="cb" />
                            <asp:RadioButton ID="IsRBL2" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "Result").ToString()!="1"?true:false %>'
                                Text="N" GroupName="cb" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="记事">
                        <ItemTemplate>
                            <asp:TextBox ID="EventTBX" runat="server" Rows="5" TextMode="MultiLine" Text='<%#DataBinder.Eval(Container.DataItem, "Remark")%>'></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    暂无信息
                </EmptyDataTemplate>
                <HeaderStyle CssClass="header" />
                <PagerSettings FirstPageText="首页" LastPageText="最后页" NextPageText="后一页" PreviousPageText="前一页"
                    Mode="NextPreviousFirstLast" />
            </asp:GridView>
        </div>
        <asp:HiddenField ID="LabIDHF" runat="server" />
        <asp:HiddenField ID="KindIDHF" runat="server" />
        <asp:HiddenField ID="TitleIDHF" runat="server" />
        <asp:HiddenField ID="EvTimeIDHF" runat="server" />
    </form>
</body>
</html>
